package com.zhijian.wharf.entity.vo.request;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 消息主题 新增or修改vo
 *
 * @author auto
 * @version 1.0
 * @date 2024-08-12 19:28:30
 */
@Data
@Api(tags = "消息主题新增or修改vo")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MqttTopicSaveOrUpdateVo implements Serializable {

    private static final long serialVersionUID = -1;

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID", hidden = true)
    private Long id;

    /**
     * 主题
     */
    @ApiModelProperty("主题")
    @NotBlank(message = "主题不能为空")
    private String topic;

    /**
     * 用途备注
     */
    @ApiModelProperty("用途备注")
    private String note;

    /**
     * 状态，0：未发布，1：已发布
     */
    @ApiModelProperty(value = "状态，0：未发布，1：已发布", hidden = true)
    private Byte status;

    /**
     * 添加人ID
     */
    @ApiModelProperty(value = "添加人ID", hidden = true)
    private Long createUserId;

    /**
     * 添加人姓名
     */
    @ApiModelProperty(value = "添加人姓名", hidden = true)
    private String createUserName;

}